package com.example.lhh.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author luoHongHu
 * @since 2025-03-25
 */
@Getter
@Setter
@ToString
@TableName("lhh_user")
@ApiModel("用户表")
public class LhhUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("USER_ID")
    @ApiModelProperty("用户ID")
    private String userId;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("登录账号")
    private String userNo;
    @ApiModelProperty("密码")
    private String passWord;
    @ApiModelProperty("用户邮箱")
    private String userEmail;
    @ApiModelProperty("联系电话")
    private String userTp;
    @ApiModelProperty("地址")
    private String userAddres;
    @ApiModelProperty("是否有效")
    private String isEffectiv;
    @ApiModelProperty("是否启用")
    private String isPosition;
    @ApiModelProperty("盐值")
    private String salt;

    //一个人有多个角色
    @TableField(exist = false)
    private List<LhhRole> roleList;
}
